import { Address, Boolean, CardId, Code, CreateDate, Entity, Image, MemberId, Mobile, PrimaryUuid, Realname, Remark, UpdateDate, Uuid } from "@sker/core";


@Entity({
    name: 'kd_shop_member'
})
export class KdShopMember {

    @PrimaryUuid()
    id: string;

    @Uuid({ comment: '代理ID' })
    agent_id: string;

    @Uuid({ comment: '网点ID', nullable: true })
    shop_id: string;

    @MemberId({ comment: '绑定会员' })
    member_id: string;

    @Code({ comment: '身份证号' })
    cardid: string;

    @Image({ comment: '正面', nullable: true, })
    card_zheng: string;

    @Image({ comment: '反面', nullable: true, })
    card_fan: string;

    @Boolean({ comment: '是否实名', default: false })
    is_true: boolean;

    @Address({ comment: '联系地址', nullable: true, })
    address: string;

    @Code({ comment: '账号状态', default: '-1' })
    status: string;

    @Realname({ comment: '姓名', nullable: true })
    realname: string;

    @Mobile({ comment: '电话', nullable: true })
    mobile: string;

    @Remark({ comment: '备注', nullable: true })
    remark: string;

    @Uuid({ comment: '邀请人', nullable: true })
    from_id: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}